//
// Created by zengao on 2022/12/29.
//

#include "AstNode.h"

void C100::BinaryNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorBinaryNode(this);
}

void C100::ConstantNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorConstantNode(this);
}

void C100::ProgramNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorProgramNode(this);
}

void C100::ExprStmtNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorExprStmtNode(this);
}

void C100::VarExprNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorVarExprNode(this);
}

void C100::AssignExprNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorAssignExprNode(this);
}

void C100::IfStmtNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorIfStmtNode(this);
}

void C100::BlockStmtNode::accept(C100::AstVisitor *visitor) {
    visitor->visitorBlockStmtNode(this);
}
